package org.example.service;

import org.example.enums.ProductOrderPayTypeEnum;
import org.example.model.OrderMessage;
import org.example.model.PageResult;
import org.example.request.ConfirmOrderRequest;
import org.example.request.RepayOrderRequest;
import org.example.util.JsonData;

import java.util.Map;

public interface ProductOrderService {
    JsonData confirmOrder(ConfirmOrderRequest orderRequest);

    String queryOrderState(String outTradeNo);

    boolean closeOrder(OrderMessage orderMessage);

    JsonData handlerOrderCallbackMsg(ProductOrderPayTypeEnum alipay, Map<String, String> paramsMap);

    PageResult getPageByState(Integer page, Integer size, String state);

    JsonData repay(RepayOrderRequest repayOrderRequest);
}
